home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / LAN / NETP.ARJ / NPD.C < prev    next >
C/C++ Source or Header  |  1992-03-19  |  3KB  |  77 lines

  1. /*
  2.       NetPrompt     
  3.       Disposable Data Module
  4.  
  5.       NPD.c
  6.       3/18/92
  7.  
  8.       F. Brett Platko
  9.  
  10.    This module contains disposable data only. The marker at the end
  11.    "init_end_data" flags the end of disposable data.
  12.       
  13. */
  14.  
  15. #include "cr.h"                  // CodeRunner Standard Lib 
  16.  
  17. // Disposable Messages.
  18.  
  19. char   msgPrevLoad  [] = "   Program is already loaded   ";
  20. char   msgUnLoaded  [] = "      Program is unloaded      ";
  21. char   msgNoUnload  [] = "  Sorry, Cannot safely unload  ";
  22. char   msgLoaded    [] = "    NetPrompt is now Loaded    ";
  23. char   msgNoNetWare [] = "  NetWare Shell is not loaded  ";
  24.  
  25. byte   skipIntroFlag = 0x00,              // Flag to Skip Intro Message.
  26.        unloadReq     = 0x00;              // Unload Request Flag.
  27.  
  28. char   argv0          [67] = "",          // Command line arguments.
  29.       *argv           [06];               // Allow up to 6 parameters.
  30.  
  31. int    argc;                              
  32.  
  33. char   attrC [] = {0x1B,0x1E,0x1F,0x13};  // Screen Color choices for Color.
  34. char   attrM [] = {0x70,0x70,0x70,0x70};  // Screen Color choices form mono.
  35.  
  36. char  *pVidAttr;                          // Current work attribute.
  37.  
  38. // The MsgIntro string is used by the dspf() function in the NPI module.
  39.  
  40. char msgIntro [] = "`2\
  41.  `\xAF`m\
  42. `\x04        NetPrompt Utility Ver 1.00 `w\
  43. `3─`w\
  44.  `1  NetP  /U  `0 : Unload TSR (if loaded last) `w\
  45.  `1        /NI `0 : Suppress This Intro Screen `w\
  46.  `1        /P= `0 : Prompt String (optional) `w\
  47. `3─`w\
  48.  `1               F. Brett Platko `w\
  49.  `1         Serial Number: Public Domain `w\
  50. `3─`w\
  51.  `1 `w\
  52.  `r"; 
  53.  
  54. // The tsr_name string is used by OPI's MapMem utility.
  55.  
  56. char _tsr_name [] = "NetPrompt (C) 1992 F. B. Platko";
  57.  
  58. // The cfg_rec structure contains the signature used by the install module
  59. // to detect if this TSR was previously loaded.
  60.  
  61. struct cfg_rec config_block = { sizeof(config_block),       // Configuration block size 
  62.                                 'N','E','T','P',            // Program ID string 
  63.                                 100                         // Version 1.00 
  64.                               };
  65.  
  66. // The following variable is used by the Novell "Version.Exe" program to 
  67. // quickly get program version numbers. You can put anything in this string
  68. // that you want but it must start with the mixed case keyword VeRsIoN=.
  69.  
  70. char version [] = "VeRsIoN=NetPrompt TSR Ver 1.00";
  71.  
  72. fp install_list [] = {install_trap};      // Software Interrupt Trap.
  73.  
  74. word init_data_end = 1;      // Marker for the end-of-init-data (must be = NZ) 
  75.  
  76.  
  77.